package edu.yzu.testspringboot002.po.dto;


import edu.yzu.testspringboot002.common.group.AddGroup;
import edu.yzu.testspringboot002.common.group.DeleteGroup;
import edu.yzu.testspringboot002.common.group.QueryGroup;
import edu.yzu.testspringboot002.common.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


import java.io.Serializable;

/**
 * 医生查询dto
 *
 * @author yulang
 * @date 2023-09-12
 */
@Data
public class DoctorQueryDTO implements Serializable {


    private static final long serialVersionUID = -5026873878749210048L;


    @NotBlank(groups = {DeleteGroup.class},message = "医生信息不能为空")
    private String doctorIds;




    @NotNull(groups = {QueryGroup.class, UpdateGroup.class, AddGroup.class},message = "医生信息不能为空")
    private Integer doctorId;


    @NotNull(groups = {QueryGroup.class},message = "审核状态不能为空")
    @ApiModelProperty(value = "审核状态 0：待审核 1审核通过")
    private Integer auditStatus;


    @ApiModelProperty(value = "通用关键字")
    private String searchText;

}
